﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace MacroprocesosWPF.Usuario
{
    public class PlainDocument  : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        public void OnPropertyChanged(PropertyChangedEventArgs e)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, e);
            }
        }

        private int id;
        public int Id
        {
            get { return id; }
            set { id = value; OnPropertyChanged(new PropertyChangedEventArgs("Nombre")); }
        }

        private int idPadre;
        public int IdPadre
        {
            get { return idPadre; }
            set { idPadre = value; }
        }
        
        private string nombre;
        public string Nombre
        {
            get { return nombre; }
            set { nombre = value; OnPropertyChanged(new PropertyChangedEventArgs("Nombre")); }
        }        

        private string codigo;
        public string Codigo
        {
            get { return codigo; }
            set { codigo = value; OnPropertyChanged(new PropertyChangedEventArgs("Codigo")); }
        }

        private string ruta;
        public string Ruta
        {
            get { return ruta; }
            set { ruta = value; OnPropertyChanged(new PropertyChangedEventArgs("Ruta")); }
        }

        private string tipo;
        public string Tipo
        {
            get { return tipo; }
            set { tipo = value; OnPropertyChanged(new PropertyChangedEventArgs("Tipo")); }
        }
    }
}
